import request from "@/utils/request";

// 获取放飞申请列表
export function getFlyActionListApi(query, data = {}) {
  return request({
    url: '/flight/action/list',
    method: 'post',
    params: query,
    data
  })
}

// 查询放飞申请详情
export function getFlyActionDetailApi(actionId) {
  return request({
    url: `/flight/action/${actionId}`,
    method: 'get',
  })
}

// 新增放飞申请
export function saveFlyActionApi(query) {
  return request({
    url: '/flight/action',
    method: 'post',
    data: query
  })
}

// 修改放飞申请
export function editFlyActionApi(query) {
  return request({
    url: '/flight/action',
    method: 'put',
    data: query
  })
}

// 删除放飞申请
export function deleteFlyActionApi(actionId) {
  return request({
    url: `/flight/action/${actionId}`,
    method: 'delete',
  })
}